/*
 * @Descripttion: 
 * @version: 
 * @Author: guangyunl
 * @Date: 2024-01-28 00:35:54
 * @LastEditors: guangyunl
 * @LastEditTime: 2024-03-18 00:19:44
 */
//活动管理1
import api from '@/api';

//查询活动信息
export function queryActivitysApi(params) {
    return api.get('/tube/admin/queryActivitys', { params });
}

// 新增活动信息
export function createActivitysApi(data) {
    return api.post('/tube/admin/createActivitys', data);
}

// 修改活动信息
export function updateActivitysApi(data) {
    return api.put('/tube/admin/updateActivitys', data);
}

//删除活动信息
export function deleteActivitysApi(params) {
    return api.delete('/tube/admin/deleteActivitys', { params });
}

//查询活动商品信息
export function queryActivitysProductsApi(params) {
    return api.get('/tube/admin/queryActivitysProducts', { params });
}

//添加活动商品
export function selectActivitysProductsApi(data) {
    return api.post('/tube/admin/selectActivitysProducts', data);
  }

//添加活动商品
export function removeActivitysProductsApi(data) {
    return api.post('/tube/admin/removeActivitysProducts', data);
  }